package tjs.study.notes.dotest.proxy.spring.lost;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
public class Son extends Father {

    public Son() {
        super("test");
    }

    @Transactional// 加上事务注解，使当前class被cglib代理
    public void test() {
    }
}